package cn.zhentao.dao;

import cn.zhentao.pojo.Teacher;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface TeacherMapper {
    int updateTeacher(Teacher t);
    List<Teacher> findByConditions(Teacher t);
    List<Teacher> findTeachers(List<Integer> tids);
    //批量插入数据
    void addTeachers(List<Teacher> teachers);
    //分页查询
    List<Teacher> findByPage(Map<String,Integer> map);

    List<Teacher> findAllTeacher();

    List<Teacher> findAll2();

}
